package com.suineg.pms.entity.commons;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import com.google.common.collect.Lists;
import com.suineg.pms.entity.IdEntity;

/**
 * 系统参数 标识实体
 *@author Suine
 */
@Entity
@Table(name = "sys_system_parameter")
public class SystemParameter extends IdEntity{
	/** 标识号 */
	private String code;
	/** 显示 */
	private String name;
	/** 备注 */
	private String memo;
	/** 参数信息集 */
	private List<SystemInfo> systemList = Lists.newArrayList();
	@OneToMany(fetch = FetchType.LAZY,mappedBy = "parameter")
	@OrderBy("id")
	public List<SystemInfo> getSystemList() {
		return systemList;
	}
	public void setSystemList(List<SystemInfo> systemList) {
		this.systemList = systemList;
	}
	public SystemParameter() {
		super();
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
}

